package com.etc.library.service.impl;

import com.etc.library.dao.CautionMapper;
import com.etc.library.pojo.Caution;
import com.etc.library.service.CautionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CautionServiceImpl implements CautionService {

    @Autowired
    private CautionMapper cautionMapper;

    @Override
    public List<Caution> list() {
        return cautionMapper.list();
    }
}
